package cn.gailvlun.gll.net.apartment.task;

import cn.gailvlun.gll.net.ListRes;
import cn.gailvlun.gll.net.token.Authorization;
import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Query;



public interface TaskService {
    @Authorization
    @PUT("taskrecord/")
    Observable<TaskRecord> modifyCheckIn(@Body ModifyCheckInReq modifyCheckInReq);

    @Authorization
    @POST("taskrecord/")
    Observable<TaskRecord> addCheckIn(@Body AddCheckInReq addCheckInReq);

    @Authorization
    @GET("taskrecord/list/")
    Observable<ListRes<TaskRecord>> getTaskRecordList(@Query("task_id") int taskId);

    @Authorization
    @GET("taskrecord/")
    Observable<TaskRecord> getTaskRecord(@Query("task_record_id") int taskRecordId);
}
